var array = java.lang.reflect.Array.newInstance(java.lang.Class.forName(type), arrayLen);
for (var i = 0; i < arrayLen; i++) {
array[i] = arguments[i + 1];
}
return array;
},
getClass: function(className, jar) {
try {
var jarCl = this.clForJar[jar];
if (jarCl == null) {
screengrab.debug("Creating class loader for " + jar);
var id = "{02450954-cdd9-410f-b1da-db804e18c671}";
var ext = Components.classes["@mozilla.org/extensions/manager;1"].getService(Components.interfaces.nsIExtensionManager).getInstallLocation(id).getItemLocation(id);
var file = new java.io.File(ext.path + "/jars/" + jar).getAbsoluteFile();